package tpo.lmhprovider.lmhprovider.dao;

import dto.ShowDb_order;
import dto.ShowStock;
import dto.ShowStock_list;
import dto.SubStock;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import pojo.Db_order;
import pojo.Stock_list;
import pojo.Stock_order;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface StockMapper {
    int addStock_order(Stock_order stock_order);
    int addStock_list(List<Stock_list> list);
    int nextStock_order(Map map);
    int subStock (List<SubStock> list) throws SQLException;
    int addStock(SubStock subStock);
    int addStock2(SubStock subStock);
    List<ShowStock> getStock_order(Map map);
    List<ShowStock_list> getStock_list(Map map);
    int delStock_order(String code);
    int delStock_list(String stockCode);
    List<ShowDb_order> getDb_order(Map map);
    int addDb_order(Db_order db_order);
    int nextDb_order(Map map);
    List<ShowStock_list> getMingXi(Map map);
}
